﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.ComponentModel.DataAnnotations;

namespace AppSocketModel.Consume
{
    /// <summary>
    /// 设备使用费套餐
    /// </summary>
    public class DeviceUsePayTypeSelectRequestDto
    {
        /// <summary>
        /// 账户角色
        /// </summary>
        [Required(ErrorMessage = "账户角色")]
        public AccountRole AccountRole { set; get; }

        /// <summary>
        /// 使用时间(月数)
        /// </summary>
        [Required(ErrorMessage = "使用时间(月数)")]
        public int UseMonths { set; get; }

        /// <summary>
        /// 金额
        /// </summary>
        [Required(ErrorMessage = "金额")]
        public decimal PayAmount { set; get; }

        /// <summary>
        /// 折扣
        /// </summary>
        [Required(ErrorMessage = "折扣")]
        public float Discount { set; get; }
         

        /// <summary>
        /// 启用
        /// </summary>
        [Required(ErrorMessage = "启用")]
        public bool IsStartUse { set; get; }
         
         
        /// <summary>
        /// 截止时间
        /// </summary>
        public DateTime OverDateTime { set; get; } 
         
          

    }
}
